package calc;

import workflow.core.WorkflowConditionElement;
import workflow.dto.WorkflowMessage;

public class IfPlusConditionalCommand extends WorkflowConditionElement {

	public IfPlusConditionalCommand(String name) {
		super(name);
	}

	@Override
	public boolean excecute() {
		WorkflowMessage message = inMessages.get(0);
		String operation = message.getValues().get(0).toString();
		if(operation.equals("+")){
			return true;
		}
		return false;
	}

}
